import request from '@/utils/request'

// 查询派单半径设置列表
export function listRadius(query) {
  return request({
    url: '/vehicle/radius/list',
    method: 'get',
    params: query
  })
}

// 查询派单半径设置详细
export function getRadius(radiusId) {
  return request({
    url: '/vehicle/radius/' + radiusId,
    method: 'get'
  })
}

// 新增派单半径设置
export function addRadius(data) {
  return request({
    url: '/vehicle/radius',
    method: 'post',
    data: data
  })
}

// 修改派单半径设置
export function updateRadius(data) {
  return request({
    url: '/vehicle/radius',
    method: 'put',
    data: data
  })
}

// 删除派单半径设置
export function delRadius(radiusId) {
  return request({
    url: '/vehicle/radius/' + radiusId,
    method: 'delete'
  })
}
